import axios from 'axios';

const baseURL = "http://localhost:5173";

const http = axios.create({
  baseURL,
  timeout: 10000,
});


//请求拦截器
http.interceptors.request.use(
  (config) => {
    return config;
  },
  (error) => {
    
    return Promise.reject(error);
  },
);


//响应拦截器
http.interceptors.response.use(
  (response) => {
    return response;
  },
  (error) => {
    return Promise.reject(error);
  },
);


export default http;